{% extends 'myadmin/index.html' %}

{% block title %}
<title>后台-订单修改</title>
{% endblock %}

{% block con %}
<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                    <div class="widget-title am-fl">订单修改</div>
                    <div class="widget-function am-fr">
                        <a href="javascript:;" class="am-icon-cog"></a>
                    </div>
                </div>
                <div class="widget-body am-fr">
                    <form action="{% url 'myadmin_order_edit' %}" method="post" enctype="multipart/form-data" class="am-form tpl-form-line-form">
                        {% csrf_token %}
                        <div class="am-form-group">
                            <label for="user-name" class="am-u-sm-3 am-form-label">订单状态</label>
                            <div class="am-u-sm-9">
                                <select name="status" data-am-selected="{btnSize: 'sm'}">
                                    <option {% if status == 0 %} selected {% endif %} value="0">待付款</option>
                                    <option {% if status == 1 %} selected {% endif %} value="1">待发货</option>
                                    <option {% if status == 2 %} selected {% endif %} value="2">待收货</option>
                                    <option {% if status == 3 %} selected {% endif %} value="3">已收货</option>
                                </select>
                            </div>
                            <input type="hidden" name="gid" value="{{ request.GET.dict.gid }}">
                        </div>  
                        <div class="am-form-group">
                            <div class="am-u-sm-9 am-u-sm-push-3">
                                <button class="am-btn am-btn-primary tpl-btn-bg-color-success ">提交</button></div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

</div>
{% endblock %}